package com.team.appinfo.controller;

import com.team.appinfo.entity.DataDictionary;
import com.team.appinfo.service.DataDictionaryServcie;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
public class DataDictionaryController {
    @Autowired
    private DataDictionaryServcie dataDictionaryServcie;


    @RequestMapping("/getAppStateData")
    @ResponseBody
    public List<DataDictionary> getAppStateData(){
        return dataDictionaryServcie.getDictionaryByTypeName("APP状态");
    }


    @RequestMapping("/getAppPtData")
    @ResponseBody
    public List<DataDictionary> getAppPtData(){
        return dataDictionaryServcie.getDictionaryByTypeName("所属平台");
    }
}
